package tx.hw.teacher.demo01.t04;

/**
 * @author lwj
 * @date 2025-03-14
 * @vesion 1.0.0
 */
public class MainTest {
    public static void main(String[] args) {
        Box box = new Box();

        BoyThread boyThread1 = new BoyThread(box,"男孩1");
        BoyThread boyThread2 = new BoyThread(box,"男孩2");
        BoyThread boyThread3 = new BoyThread(box,"男孩3");
        GirlThread girlThread1 = new GirlThread(box,"女孩1");
        GirlThread girlThread2 = new GirlThread(box,"女孩2");
        GirlThread girlThread3 = new GirlThread(box,"女孩3");

        // 启动线程
        boyThread1.start();
        boyThread2.start();
        boyThread3.start();
        girlThread1.start();
        girlThread2.start();
        girlThread3.start();
    }
}
